package cn.zyq.ykb.beans.product;

import cn.zyq.ykb.system.common.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 商品类型对象 productType
 *
 * @author SystemAuth
 * @date 2023-11-02
 */
@Data
@Entity
@Table(name = "`productType`")
public class ProductType  extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`productTypeID`")
    @ApiModelProperty("主键id，用于关联")
    private Integer productTypeID;
    /**
     * 商品类型名称
     */
    @Column(name = "`productTypeName`")
    @ApiModelProperty("商品类型名称")
    private String productTypeName;
    /**
     * 图标
     */
    @Column(name = "`picture`")
    @ApiModelProperty("图标")
    private String picture;

    @Transient
    @ApiModelProperty("类型个数")
    private Integer number;
}
